import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:wch/widget/business_widget.dart';
import 'package:wch/widget/common_widget.dart';
import 'package:wch/widget/padding_widget.dart';

import '../constant/resource_constant.dart';
import '../utils/tel_sms_service.dart';

class HelpPage extends StatefulWidget {
  const HelpPage({super.key});

  @override
  State<HelpPage> createState() => _HelpPageState();
}

class _HelpPageState extends State<HelpPage> {
  @override
  Widget build(BuildContext context) {
    return CommonScaffold(title: '帮助', body: Container(
      color: Color(0xFFF8F9FB),
      height: ScreenUtil().screenHeight,
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Container(
            alignment: Alignment.center,
            height: 445.h,
            margin: EdgeInsets.all(15.w),
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.all(Radius.circular(7.5.w)),
            ),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                VerPadding(65.h),
                Image.asset(companyLogoIcon, width: 124.w, height: 35.h,),
                VerPadding(63.h),
                CommonInputWidget.getShowWidget('公司名称', '浙江柔灵科技有限公司'),
                LineWidget(width: ScreenUtil().screenWidth-70.w, height: 0.5),
                InkWell(onTap: (){
                  TelAndSmsService().httpTo('flectothink.com');
                }, child: CommonInputWidget.getShowWidget('网址', 'https://flectothink.com', themeColor)),
                LineWidget(width: ScreenUtil().screenWidth-70.w, height: 0.5),
                InkWell(onTap: (){
                  TelAndSmsService().telTo('400-808-5020');
                }, child: CommonInputWidget.getShowWidget('联系电话', '400-808-5020', themeColor)),
                LineWidget(width: ScreenUtil().screenWidth-70.w, height: 0.5),
                InkWell(onTap: (){
                  TelAndSmsService().emailTo('market@flectothink.com');
                }, child: CommonInputWidget.getShowWidget('邮箱', 'market@flectothink.com', themeColor)),
                LineWidget(width: ScreenUtil().screenWidth-70.w, height: 0.5),
                CommonInputWidget.getShowWidget('地址', '广东省深圳市坪山区创新广场A座604'),
              ],
            ),
          ),
        ],
      ),
    ));
  }
}
